package com.hgw.Demo10_TemplateMethodPattern.examples;

/**
 * Data time:2021/12/21 15:45
 * StudentID:2019112118
 * Author:hgw
 * Description: 活期账户类，充当具体子类
 */
public class CurrentAccount extends Account{
    // 覆盖父类的抽象基本方法
    public void calculateInterest() {
        System.out.println("俺活期利率计算利息！");
    }
}
